<template>
  <div>
    <el-container>
      <Aside></Aside>
      <el-container direction="vertical">
        <Header @func="getData"></Header>
        <Main2 :msg="passName"></Main2>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import Aside from "./Aside";
import Header from "./Header";
import Main2 from "./Main2";

export default {
  name: "two",
  data() {
    return {
      passName: ""
    };
  },
  components: {
    Aside,
    Header,
    Main2
  },
  mounted() {},
  methods: {
    getData(data) {
      this.passName = data;
    }
  }
};
</script>

<style scoped>
.el-container {
  height: 100%;
}
</style>
